package com.zlsy.springbootdemo.chainofresponsibility.mtdemo2;

import com.zlsy.springbootdemo.chainofresponsibility.mtdemo2.context.RuleContext;

/**
 * @author zhouliang
 * @date 2021/1/23 15:06
 */
public abstract class BasicRule<CORE_ITEM, T extends RuleContext<CORE_ITEM>> implements Rule<T> {

  /** evaluate用于判断是否经过规则执行 */
  @Override
  public abstract boolean evaluate(T context);

  /** 用于执行具体的规则内容。 */
  public abstract void execute(T context);
}
